package com.yylany.mapper;

import com.yylany.bo.GoodsData;
import com.yylany.bo.GoodsResult;
import com.yylany.pojo.TbSpu;
import com.yylany.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description: web-parent
 *
 * @author <a href="mailto:17777502615@163.com">yaoyonglong</a>
 * @date 2018/12/17
 * @since 1.0.0
 */
public interface TbSpuMapper extends MyMapper<TbSpu> {


    /**
     * 根据CategoryId 查询所有的商品信息
     *#         LIMIT #{count}
     * @param cat 三级分类id
     * @return 商品数据
     */
    List<GoodsData> findAllByCatId(@Param("result") GoodsResult result);


}